package com.weijun.keepalive.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.weijun.keepalive.CLICK_NOTIFICATION
import com.weijun.keepalive.keepAlive
import com.weijun.keepalive.logE

/**
 * @author: weijun
 * date: 2023/7/5
 * description:
 */
class NotificationClickReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        "OnePixelReceiver onReceive:${intent.action}".logE()
        if (CLICK_NOTIFICATION == intent.action) {
            keepAlive?.notificationConfig?.notificationClick?.invoke(context,intent)
        }
    }

}